home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / mlpmodul.sit / MacLogimoPlus Documentation / DEF2 Files / DFILES.DEF < prev    next >
MacBinary  |  1990-06-14  |  3.9 KB  |  [TEXT/PMED]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Jun 13 22:13:54 1990, modified Wed Jun 13 22:13:54 1990, creator 'PMED', type ASCII, 3432 bytes "DFILES.DEF" , at 0xde8 348 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[PMED]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 44 46 49 4c 45 53 | 2e 44 45 46 00 00 00 00 |..DFILES|.DEF....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 4d 45 | 44 01 00 00 00 00 00 00 |.TEXTPME|D.......|
|00000050| 00 00 00 00 00 0d 68 00 | 00 01 5c a2 9c a3 62 a2 |......h.|..\...b.|
|00000060| 9c a3 62 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..b.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c 27 00 00 |........|....|'..|
|00000080| 44 45 46 49 4e 49 54 49 | 4f 4e 20 4d 4f 44 55 4c |DEFINITI|ON MODUL|
|00000090| 45 20 44 46 69 6c 65 73 | 3b 20 20 20 28 2a 20 4c |E DFiles|; (* L|
|000000a0| 47 20 32 32 2e 30 37 2e | 38 32 20 2c 20 31 34 2e |G 22.07.|82 , 14.|
|000000b0| 30 36 2e 38 33 20 50 46 | 20 2a 29 0d 0d 28 2a 20 |06.83 PF| *)..(* |
|000000c0| 61 64 61 70 74 65 64 20 | 66 6f 72 20 4d 61 63 69 |adapted |for Maci|
|000000d0| 6e 74 6f 73 68 20 62 79 | 20 46 72 61 6e 7a 20 4b |ntosh by| Franz K|
|000000e0| 72 6f 6e 73 65 64 65 72 | 2c 20 31 37 2e 30 32 2e |ronseder|, 17.02.|
|000000f0| 38 35 20 2a 29 0d 28 2a | 20 63 6f 6e 74 61 69 6e |85 *).(*| contain|
|00000100| 73 20 74 68 65 20 69 6d | 70 6c 65 6d 65 6e 74 61 |s the im|plementa|
|00000110| 74 69 6f 6e 20 20 6f 66 | 20 74 68 65 20 4d 32 46 |tion of| the M2F|
|00000120| 69 6c 65 73 2d 52 6f 75 | 74 69 6e 65 73 20 66 6f |iles-Rou|tines fo|
|00000130| 72 20 44 49 53 4b 20 61 | 63 63 65 73 73 2a 29 0d |r DISK a|ccess*).|
|00000140| 28 2a 20 54 68 65 20 64 | 65 66 69 6e 69 74 69 6f |(* The d|efinitio|
|00000150| 6e 20 69 73 20 73 69 6d | 69 6c 61 72 20 74 6f 20 |n is sim|ilar to |
|00000160| 4d 32 46 69 6c 65 73 20 | 2a 29 0d 28 2a 20 74 68 |M2Files |*).(* th|
|00000170| 69 73 20 6d 6f 64 75 6c | 65 20 73 68 6f 75 6c 64 |is modul|e should|
|00000180| 20 6e 6f 74 20 62 65 20 | 63 61 6c 6c 65 64 20 62 | not be |called b|
|00000190| 79 20 65 6e 64 20 70 72 | 6f 67 72 61 6d 6d 65 72 |y end pr|ogrammer|
|000001a0| 73 20 2a 29 0d 0d 20 20 | 46 52 4f 4d 20 53 59 53 |s *).. |FROM SYS|
|000001b0| 54 45 4d 20 49 4d 50 4f | 52 54 20 57 4f 52 44 2c |TEM IMPO|RT WORD,|
|000001c0| 41 44 44 52 45 53 53 3b | 0d 20 20 46 52 4f 4d 20 |ADDRESS;|. FROM |
|000001d0| 4d 61 63 42 61 73 65 20 | 49 4d 50 4f 52 54 20 4c |MacBase |IMPORT L|
|000001e0| 6f 6e 67 49 6e 74 3b 0d | 0d 20 20 45 58 50 4f 52 |ongInt;.|. EXPOR|
|000001f0| 54 20 51 55 41 4c 49 46 | 49 45 44 0d 20 20 20 20 |T QUALIF|IED. |
|00000200| 46 69 6c 65 2c 20 20 20 | 20 65 6f 6c 63 2c 0d 20 |File, | eolc,. |
|00000210| 20 20 20 4f 70 65 6e 2c | 20 43 72 65 61 74 65 2c | Open,| Create,|
|00000220| 20 43 6c 6f 73 65 2c 20 | 44 65 6c 65 74 65 2c 20 | Close, |Delete, |
|00000230| 52 65 6e 61 6d 65 2c 20 | 47 65 74 50 6f 73 2c 20 |Rename, |GetPos, |
|00000240| 53 65 74 50 6f 73 2c 20 | 52 65 73 65 74 2c 0d 20 |SetPos, |Reset,. |
|00000250| 20 20 20 52 65 61 64 43 | 68 61 72 2c 20 57 72 69 | ReadC|har, Wri|
|00000260| 74 65 43 68 61 72 2c 20 | 52 65 61 64 57 6f 72 64 |teChar, |ReadWord|
|00000270| 2c 20 57 72 69 74 65 57 | 6f 72 64 2c 20 4d 6f 64 |, WriteW|ord, Mod|
|00000280| 69 66 79 57 6f 72 64 2c | 0d 20 20 20 20 45 6e 64 |ifyWord,|. End|
|00000290| 46 69 6c 65 2c 0d 20 20 | 20 20 53 65 74 54 79 70 |File,. | SetTyp|
|000002a0| 65 61 6e 64 43 72 65 61 | 74 6f 72 2c 47 65 74 54 |eandCrea|tor,GetT|
|000002b0| 79 70 65 61 6e 64 43 72 | 65 61 74 6f 72 3b 0d 0d |ypeandCr|eator;..|
|000002c0| 20 20 43 4f 4e 53 54 20 | 65 6f 6c 63 20 3d 20 31 | CONST |eolc = 1|
|000002d0| 35 43 3b 20 28 2a 20 65 | 6e 64 20 6f 66 20 6c 69 |5C; (* e|nd of li|
|000002e0| 6e 65 20 63 68 61 72 61 | 63 74 65 72 20 66 6f 72 |ne chara|cter for|
|000002f0| 20 63 68 61 72 61 63 74 | 65 72 20 66 69 6c 65 73 | charact|er files|
|00000300| 20 2a 29 0d 20 20 54 59 | 50 45 20 46 69 6c 65 3b | *). TY|PE File;|
|00000310| 0d 0d 20 20 50 52 4f 43 | 45 44 55 52 45 20 4f 70 |.. PROC|EDURE Op|
|00000320| 65 6e 20 28 56 41 52 20 | 66 3a 20 46 69 6c 65 3b |en (VAR |f: File;|
|00000330| 20 56 41 52 20 6e 61 6d | 65 3a 20 41 52 52 41 59 | VAR nam|e: ARRAY|
|00000340| 20 4f 46 20 43 48 41 52 | 3b 0d 20 20 20 20 20 20 | OF CHAR|;. |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 72 65 61 64 6f 6e 6c 79 | 3a 20 42 4f 4f 4c 45 41 |readonly|: BOOLEA|
|00000370| 4e 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |N;. | |
|00000380| 20 20 20 20 20 56 41 52 | 20 64 6f 6e 65 3a 20 42 | VAR| done: B|
|00000390| 4f 4f 4c 45 41 4e 29 3b | 0d 20 20 20 20 28 2a 20 |OOLEAN);|. (* |
|000003a0| 4f 70 65 6e 20 61 20 66 | 69 6c 65 20 61 6c 72 65 |Open a f|ile alre|
|000003b0| 61 64 79 20 65 78 69 73 | 74 69 6e 67 20 69 6e 20 |ady exis|ting in |
|000003c0| 64 69 72 65 63 74 6f 72 | 79 2e 20 72 65 61 64 6f |director|y. reado|
|000003d0| 6e 6c 79 20 3d 20 74 6f | 20 72 65 61 64 20 69 74 |nly = to| read it|
|000003e0| 20 2a 29 0d 0d 20 20 50 | 52 4f 43 45 44 55 52 45 | *).. P|ROCEDURE|
|000003f0| 20 43 72 65 61 74 65 20 | 28 56 41 52 20 66 3a 20 | Create |(VAR f: |
|00000400| 46 69 6c 65 3b 20 56 41 | 52 20 6e 61 6d 65 3a 20 |File; VA|R name: |
|00000410| 41 52 52 41 59 20 4f 46 | 20 43 48 41 52 3b 0d 20 |ARRAY OF| CHAR;. |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000430| 20 20 20 56 41 52 20 64 | 6f 6e 65 3a 20 42 4f 4f | VAR d|one: BOO|
|00000440| 4c 45 41 4e 29 3b 0d 20 | 20 20 20 28 2a 20 4f 70 |LEAN);. | (* Op|
|00000450| 65 6e 20 61 20 6e 65 77 | 20 66 69 6c 65 2e 20 49 |en a new| file. I|
|00000460| 66 20 61 6e 20 66 69 6c | 65 20 77 69 74 68 20 74 |f an fil|e with t|
|00000470| 68 65 20 73 61 6d 65 20 | 6e 61 6d 65 20 61 6c 72 |he same |name alr|
|00000480| 65 61 64 79 20 65 78 69 | 73 74 73 2c 20 74 68 65 |eady exi|sts, the|
|00000490| 6e 0d 20 20 20 20 20 20 | 20 74 68 65 20 6f 6c 64 |n. | the old|
|000004a0| 20 66 69 6c 65 20 69 73 | 20 70 72 65 73 65 72 76 | file is| preserv|
|000004b0| 65 64 2e 0d 20 20 20 20 | 20 20 20 43 6c 6f 73 65 |ed.. | Close|
|000004c0| 20 77 69 6c 6c 20 74 68 | 65 6e 20 64 65 73 74 72 | will th|en destr|
|000004d0| 6f 79 20 74 68 65 20 6f | 6c 64 20 66 69 6c 65 2c |oy the o|ld file,|
|000004e0| 20 61 6e 64 20 63 61 74 | 61 6c 6f 67 20 74 68 65 | and cat|alog the|
|000004f0| 20 6e 65 77 20 66 69 6c | 65 2e 0d 20 20 20 20 20 | new fil|e.. |
|00000500| 20 20 44 65 6c 65 74 65 | 20 77 69 6c 6c 20 74 68 | Delete| will th|
|00000510| 65 6e 20 64 65 73 74 72 | 6f 79 20 74 68 65 20 6e |en destr|oy the n|
|00000520| 65 77 20 66 69 6c 65 2c | 20 61 6e 64 20 6b 65 65 |ew file,| and kee|
|00000530| 70 20 74 68 65 20 6f 6c | 64 20 66 69 6c 65 2e 20 |p the ol|d file. |
|00000540| 20 2a 29 0d 0d 20 20 50 | 52 4f 43 45 44 55 52 45 | *).. P|ROCEDURE|
|00000550| 20 43 6c 6f 73 65 28 56 | 41 52 20 66 3a 20 46 69 | Close(V|AR f: Fi|
|00000560| 6c 65 3b 20 56 41 52 20 | 64 6f 6e 65 3a 20 42 4f |le; VAR |done: BO|
|00000570| 4f 4c 45 41 4e 29 3b 0d | 20 20 20 20 28 2a 20 43 |OLEAN);.| (* C|
|00000580| 6c 6f 73 65 20 61 20 66 | 69 6c 65 2c 20 65 6e 74 |lose a f|ile, ent|
|00000590| 65 72 20 61 20 6e 65 77 | 20 6e 61 6d 65 20 69 6e |er a new| name in|
|000005a0| 74 6f 20 64 69 72 65 63 | 74 6f 72 79 20 2a 29 0d |to direc|tory *).|
|000005b0| 0d 20 20 50 52 4f 43 45 | 44 55 52 45 20 44 65 6c |. PROCE|DURE Del|
|000005c0| 65 74 65 28 56 41 52 20 | 66 3a 20 46 69 6c 65 3b |ete(VAR |f: File;|
|000005d0| 20 56 41 52 20 64 6f 6e | 65 3a 20 42 4f 4f 4c 45 | VAR don|e: BOOLE|
|000005e0| 41 4e 29 3b 0d 20 20 20 | 20 28 2a 20 43 6c 6f 73 |AN);. | (* Clos|
|000005f0| 65 20 61 20 66 69 6c 65 | 2c 20 72 65 6d 6f 76 65 |e a file|, remove|
|00000600| 20 66 72 6f 6d 20 64 69 | 72 65 63 74 6f 72 79 20 | from di|rectory |
|00000610| 2a 29 0d 0d 20 20 50 52 | 4f 43 45 44 55 52 45 20 |*).. PR|OCEDURE |
|00000620| 52 65 6e 61 6d 65 28 56 | 41 52 20 6f 6c 64 6e 61 |Rename(V|AR oldna|
|00000630| 6d 65 2c 20 6e 65 77 6e | 61 6d 65 3a 20 41 52 52 |me, newn|ame: ARR|
|00000640| 41 59 20 4f 46 20 43 48 | 41 52 3b 20 56 41 52 20 |AY OF CH|AR; VAR |
|00000650| 64 6f 6e 65 3a 20 42 4f | 4f 4c 45 41 4e 29 3b 0d |done: BO|OLEAN);.|
|00000660| 20 20 20 20 28 2a 20 52 | 65 6e 61 6d 65 20 61 6e | (* R|ename an|
|00000670| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 2e 20 | existin|g file. |
|00000680| 74 68 65 20 66 69 6c 65 | 20 6d 75 73 74 20 6e 6f |the file| must no|
|00000690| 74 20 62 65 20 6f 70 65 | 6e 20 2a 29 0d 20 20 20 |t be ope|n *). |
|000006a0| 20 28 2a 20 52 65 6e 61 | 6d 65 20 69 73 20 6e 6f | (* Rena|me is no|
|000006b0| 74 20 72 65 71 75 69 72 | 65 64 20 62 79 20 74 68 |t requir|ed by th|
|000006c0| 65 20 63 6f 6d 70 69 6c | 65 72 20 2a 29 0d 0d 20 |e compil|er *).. |
|000006d0| 20 50 52 4f 43 45 44 55 | 52 45 20 47 65 74 50 6f | PROCEDU|RE GetPo|
|000006e0| 73 28 56 41 52 20 66 3a | 20 46 69 6c 65 3b 20 56 |s(VAR f:| File; V|
|000006f0| 41 52 20 68 69 67 68 70 | 6f 73 2c 20 6c 6f 77 70 |AR highp|os, lowp|
|00000700| 6f 73 3a 20 43 41 52 44 | 49 4e 41 4c 29 3b 0d 20 |os: CARD|INAL);. |
|00000710| 20 20 20 28 2a 20 47 65 | 74 20 63 75 72 72 65 6e | (* Ge|t curren|
|00000720| 74 20 70 6f 73 69 74 69 | 6f 6e 20 6f 66 20 74 68 |t positi|on of th|
|00000730| 65 20 66 69 6c 65 20 2a | 29 0d 0d 20 20 50 52 4f |e file *|).. PRO|
|00000740| 43 45 44 55 52 45 20 53 | 65 74 50 6f 73 28 56 41 |CEDURE S|etPos(VA|
|00000750| 52 20 66 3a 20 46 69 6c | 65 3b 20 68 69 67 68 70 |R f: Fil|e; highp|
|00000760| 6f 73 2c 20 6c 6f 77 70 | 6f 73 3a 20 43 41 52 44 |os, lowp|os: CARD|
|00000770| 49 4e 41 4c 29 3b 0d 20 | 20 20 20 28 2a 20 53 65 |INAL);. | (* Se|
|00000780| 74 20 66 69 6c 65 20 74 | 6f 20 69 6e 64 69 63 61 |t file t|o indica|
|00000790| 74 65 64 20 70 6f 73 69 | 74 69 6f 6e 2e 0d 20 20 |ted posi|tion.. |
|000007a0| 20 20 20 20 20 3c 68 69 | 67 68 70 6f 73 2c 6c 6f | <hi|ghpos,lo|
|000007b0| 77 70 6f 73 3e 20 69 73 | 20 20 62 79 74 65 2d 70 |wpos> is| byte-p|
|000007c0| 6f 73 69 74 69 6f 6e 20 | 61 73 20 61 20 32 6e 2d |osition |as a 2n-|
|000007d0| 62 69 74 20 6e 75 6d 62 | 65 72 20 2a 29 0d 0d 20 |bit numb|er *).. |
|000007e0| 20 50 52 4f 43 45 44 55 | 52 45 20 52 65 73 65 74 | PROCEDU|RE Reset|
|000007f0| 28 56 41 52 20 66 3a 20 | 46 69 6c 65 29 3b 0d 20 |(VAR f: |File);. |
|00000800| 20 20 20 28 2a 20 50 6f | 73 69 74 69 6f 6e 20 74 | (* Po|sition t|
|00000810| 68 65 20 66 69 6c 65 20 | 61 74 20 74 68 65 20 62 |he file |at the b|
|00000820| 65 67 69 6e 6e 69 6e 67 | 20 61 6e 64 20 73 65 74 |eginning| and set|
|00000830| 20 74 6f 20 69 64 6c 65 | 20 6d 6f 64 65 20 2a 29 | to idle| mode *)|
|00000840| 0d 0d 20 20 50 52 4f 43 | 45 44 55 52 45 20 52 65 |.. PROC|EDURE Re|
|00000850| 61 64 43 68 61 72 28 56 | 41 52 20 66 3a 20 46 69 |adChar(V|AR f: Fi|
|00000860| 6c 65 3b 20 56 41 52 20 | 63 68 3a 20 43 48 41 52 |le; VAR |ch: CHAR|
|00000870| 29 3b 0d 20 20 20 20 28 | 2a 20 52 65 61 64 20 61 |);. (|* Read a|
|00000880| 20 63 68 61 72 61 63 74 | 65 72 20 66 72 6f 6d 20 | charact|er from |
|00000890| 66 69 6c 65 20 2a 29 0d | 0d 20 20 50 52 4f 43 45 |file *).|. PROCE|
|000008a0| 44 55 52 45 20 57 72 69 | 74 65 43 68 61 72 28 56 |DURE Wri|teChar(V|
|000008b0| 41 52 20 66 3a 20 46 69 | 6c 65 3b 20 63 68 3a 20 |AR f: Fi|le; ch: |
|000008c0| 43 48 41 52 29 3b 0d 20 | 20 20 20 28 2a 20 57 72 |CHAR);. | (* Wr|
|000008d0| 69 74 65 20 61 20 63 68 | 61 72 61 63 74 65 72 20 |ite a ch|aracter |
|000008e0| 74 6f 20 66 69 6c 65 20 | 2a 29 0d 0d 20 20 50 52 |to file |*).. PR|
|000008f0| 4f 43 45 44 55 52 45 20 | 52 65 61 64 57 6f 72 64 |OCEDURE |ReadWord|
|00000900| 28 56 41 52 20 66 3a 20 | 46 69 6c 65 3b 20 56 41 |(VAR f: |File; VA|
|00000910| 52 20 77 3a 20 57 4f 52 | 44 29 3b 0d 20 20 20 20 |R w: WOR|D);. |
|00000920| 28 2a 20 52 65 61 64 20 | 61 20 77 6f 72 64 20 66 |(* Read |a word f|
|00000930| 72 6f 6d 20 66 69 6c 65 | 20 2a 29 0d 0d 20 20 50 |rom file| *).. P|
|00000940| 52 4f 43 45 44 55 52 45 | 20 57 72 69 74 65 57 6f |ROCEDURE| WriteWo|
|00000950| 72 64 28 56 41 52 20 66 | 3a 20 46 69 6c 65 3b 20 |rd(VAR f|: File; |
|00000960| 77 3a 20 57 4f 52 44 29 | 3b 0d 20 20 20 20 28 2a |w: WORD)|;. (*|
|00000970| 20 57 72 69 74 65 20 61 | 20 77 6f 72 64 20 74 6f | Write a| word to|
|00000980| 20 66 69 6c 65 20 2a 29 | 0d 0d 20 20 50 52 4f 43 | file *)|.. PROC|
|00000990| 45 44 55 52 45 20 4d 6f | 64 69 66 79 57 6f 72 64 |EDURE Mo|difyWord|
|000009a0| 28 56 41 52 20 66 3a 20 | 46 69 6c 65 3b 20 77 3a |(VAR f: |File; w:|
|000009b0| 20 57 4f 52 44 29 3b 0d | 20 20 20 20 28 2a 20 4d | WORD);.| (* M|
|000009c0| 6f 64 69 66 79 20 61 20 | 77 6f 72 64 20 6f 6e 20 |odify a |word on |
|000009d0| 66 69 6c 65 20 2a 29 0d | 0d 20 20 50 52 4f 43 45 |file *).|. PROCE|
|000009e0| 44 55 52 45 20 45 6e 64 | 46 69 6c 65 28 56 41 52 |DURE End|File(VAR|
|000009f0| 20 66 3a 20 46 69 6c 65 | 29 3a 20 42 4f 4f 4c 45 | f: File|): BOOLE|
|00000a00| 41 4e 3b 0d 20 20 20 20 | 28 2a 20 45 6e 64 20 6f |AN;. |(* End o|
|00000a10| 66 20 66 69 6c 65 20 72 | 65 61 63 68 65 64 20 28 |f file r|eached (|
|00000a20| 20 54 52 55 45 20 77 68 | 65 6e 20 72 65 61 64 69 | TRUE wh|en readi|
|00000a30| 6e 67 20 74 68 65 20 45 | 4f 46 20 6d 61 72 6b 65 |ng the E|OF marke|
|00000a40| 72 2c 20 6f 72 20 77 68 | 65 6e 0d 20 20 20 20 20 |r, or wh|en. |
|00000a50| 20 20 69 6e 20 77 72 69 | 74 65 20 6d 6f 64 65 2e | in wri|te mode.|
|00000a60| 50 46 29 20 2a 29 0d 0d | 28 2a 20 73 70 65 63 69 |PF) *)..|(* speci|
|00000a70| 66 69 63 61 74 69 6f 6e | 20 6e 6f 74 65 73 3a 0d |fication| notes:.|
|00000a80| 20 20 20 69 66 20 61 6e | 20 65 72 72 6f 72 20 6f | if an| error o|
|00000a90| 63 63 75 72 73 2c 20 74 | 68 65 6e 20 43 6f 6d 70 |ccurs, t|hen Comp|
|00000aa0| 46 69 6c 65 20 6d 75 73 | 74 20 70 72 69 6e 74 20 |File mus|t print |
|00000ab0| 74 68 65 20 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |the oper|ating sy|
|00000ac0| 73 74 65 6d 20 64 65 70 | 65 6e 64 65 6e 74 0d 20 |stem dep|endent. |
|00000ad0| 20 20 65 72 72 6f 72 20 | 64 65 74 61 69 6c 73 2e | error |details.|
|00000ae0| 20 54 68 65 20 43 6f 6d | 70 69 6c 65 72 20 6f 72 | The Com|piler or|
|00000af0| 20 4c 69 6e 6b 65 72 20 | 64 6f 65 73 6e 74 20 77 | Linker |doesnt w|
|00000b00| 61 6e 74 20 74 6f 20 6b | 6e 6f 77 20 61 62 6f 75 |ant to k|now abou|
|00000b10| 74 20 69 74 2e 0d 20 20 | 20 62 75 74 20 2d 20 66 |t it.. | but - f|
|00000b20| 6f 72 20 4f 70 65 6e 2c | 20 69 66 20 74 68 65 20 |or Open,| if the |
|00000b30| 66 69 6c 65 20 64 6f 65 | 73 6e 27 74 20 65 78 69 |file doe|sn't exi|
|00000b40| 73 74 2c 20 74 68 65 6e | 20 43 6f 6d 70 46 69 6c |st, then| CompFil|
|00000b50| 65 20 6d 75 73 74 20 6e | 6f 74 20 64 69 73 70 6c |e must n|ot displ|
|00000b60| 61 79 0d 20 20 20 20 20 | 20 20 20 20 61 6e 20 65 |ay. | an e|
|00000b70| 72 72 6f 72 20 6d 65 73 | 73 61 67 65 2e 20 54 68 |rror mes|sage. Th|
|00000b80| 65 20 63 6f 6d 70 69 6c | 65 72 20 77 69 6c 6c 20 |e compil|er will |
|00000b90| 68 61 6e 64 6c 65 20 69 | 74 20 62 79 20 74 72 79 |handle i|t by try|
|00000ba0| 69 6e 67 20 6f 6e 20 74 | 68 65 20 4c 49 42 0d 20 |ing on t|he LIB. |
|00000bb0| 20 20 20 20 20 20 20 20 | 64 65 76 69 63 65 20 65 | |device e|
|00000bc0| 74 63 2c 20 61 6e 64 20 | 64 69 73 70 6c 61 79 20 |tc, and |display |
|00000bd0| 74 68 65 20 6d 65 73 73 | 61 67 65 20 69 74 73 65 |the mess|age itse|
|00000be0| 6c 66 2c 20 69 66 20 74 | 68 69 73 20 61 6c 73 6f |lf, if t|his also|
|00000bf0| 20 66 61 69 6c 73 2e 0d | 0d 20 20 20 57 72 69 74 | fails..|. Writ|
|00000c00| 69 6e 67 20 6f 6e 20 61 | 6e 20 65 78 69 73 74 69 |ing on a|n existi|
|00000c10| 6e 67 20 66 69 6c 65 20 | 6d 65 61 6e 73 2c 20 74 |ng file |means, t|
|00000c20| 68 65 20 66 69 6c 65 20 | 73 68 6f 75 6c 64 20 62 |he file |should b|
|00000c30| 65 20 74 72 75 6e 63 61 | 74 65 64 20 61 74 20 74 |e trunca|ted at t|
|00000c40| 68 65 0d 20 20 20 63 75 | 72 72 65 6e 74 20 70 6f |he. cu|rrent po|
|00000c50| 73 69 74 69 6f 6e 2e 0d | 0d 20 20 20 44 6f 20 6e |sition..|. Do n|
|00000c60| 6f 74 20 6d 69 78 20 52 | 65 61 64 2c 20 57 72 69 |ot mix R|ead, Wri|
|00000c70| 74 65 20 61 6e 64 20 4d | 6f 64 69 66 79 20 6d 6f |te and M|odify mo|
|00000c80| 64 65 73 2c 20 75 6e 6c | 65 73 73 20 63 61 6c 6c |des, unl|ess call|
|00000c90| 69 6e 67 20 52 65 73 65 | 74 20 62 65 74 77 65 65 |ing Rese|t betwee|
|00000ca0| 6e 2e 0d 20 20 20 44 6f | 20 6e 6f 74 20 6d 69 78 |n.. Do| not mix|
|00000cb0| 20 43 68 61 72 20 61 6e | 64 20 57 6f 72 64 20 63 | Char an|d Word c|
|00000cc0| 61 6c 6c 73 20 28 66 69 | 6c 65 20 73 74 72 75 63 |alls (fi|le struc|
|00000cd0| 74 75 72 65 20 6d 61 79 | 20 62 65 20 64 69 66 66 |ture may| be diff|
|00000ce0| 65 72 65 6e 74 29 2e 0d | 2a 29 0d 0d 28 2a 20 74 |erent)..|*)..(* t|
|00000cf0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 70 72 6f |he follo|wing pro|
|00000d00| 63 65 64 75 72 65 73 20 | 77 69 6c 6c 20 77 6f 72 |cedures |will wor|
|00000d10| 6b 20 6f 6e 20 6f 70 65 | 6e 20 66 69 6c 65 73 20 |k on ope|n files |
|00000d20| 2a 29 0d 50 52 4f 43 45 | 44 55 52 45 20 53 65 74 |*).PROCE|DURE Set|
|00000d30| 54 79 70 65 61 6e 64 43 | 72 65 61 74 6f 72 20 28 |TypeandC|reator (|
|00000d40| 56 41 52 20 66 3a 46 69 | 6c 65 3b 20 56 41 52 20 |VAR f:Fi|le; VAR |
|00000d50| 46 54 79 70 65 2c 43 72 | 65 61 74 6f 72 3a 41 52 |FType,Cr|eator:AR|
|00000d60| 52 41 59 20 4f 46 20 43 | 48 41 52 3b 56 41 52 20 |RAY OF C|HAR;VAR |
|00000d70| 64 6f 6e 65 3a 42 4f 4f | 4c 45 41 4e 29 3b 0d 50 |done:BOO|LEAN);.P|
|00000d80| 52 4f 43 45 44 55 52 45 | 20 47 65 74 54 79 70 65 |ROCEDURE| GetType|
|00000d90| 61 6e 64 43 72 65 61 74 | 6f 72 20 28 56 41 52 20 |andCreat|or (VAR |
|00000da0| 66 3a 46 69 6c 65 3b 20 | 56 41 52 20 46 54 79 70 |f:File; |VAR FTyp|
|00000db0| 65 2c 43 72 65 61 74 6f | 72 3a 41 52 52 41 59 20 |e,Creato|r:ARRAY |
|00000dc0| 4f 46 20 43 48 41 52 3b | 56 41 52 20 64 6f 6e 65 |OF CHAR;|VAR done|
|00000dd0| 3a 42 4f 4f 4c 45 41 4e | 29 3b 0d 0d 45 4e 44 20 |:BOOLEAN|);..END |
|00000de0| 44 46 69 6c 65 73 2e 0d | 00 00 00 00 00 00 00 00 |DFiles..|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000e10| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e20| 00 02 00 00 09 53 00 00 | 0c 00 99 bd 1b 6e 9b a4 |.....S..|.....n..|
|00000e30| 0a 44 46 49 4c 45 53 2e | 44 45 46 45 02 00 00 00 |.DFILES.|DEFE....|
|00000e40| 54 45 58 54 50 4d 45 44 | 01 00 01 40 00 80 3b c6 |TEXTPMED|...@..;.|
|00000e50| 00 00 54 45 58 54 50 4d | 45 44 01 00 01 40 00 80 |..TEXTPM|ED...@..|
|00000e60| 3b c6 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00000e70| 00 00 9b a4 83 42 00 00 | 0d 68 00 00 01 5c 54 45 |.....B..|.h...\TE|
|00000e80| 58 54 45 44 49 54 00 00 | 00 00 ff c0 00 00 00 00 |XTEDIT..|........|
|00000e90| 00 63 01 77 00 00 0d ed | 00 00 10 00 00 00 00 00 |.c.w....|........|
|00000ea0| 00 00 00 00 00 00 9b a4 | 83 42 9b a4 84 60 0a 44 |........|.B...`.D|
|00000eb0| 46 49 4c 45 53 2e 44 45 | 46 00 00 00 00 00 00 00 |FILES.DE|F.......|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f00| 00 00 00 04 00 06 00 08 | 00 00 00 0a 00 09 06 4d |........|.......M|
|00000f10| 6f 6e 61 63 6f 04 00 00 | 01 00 00 00 01 16 00 00 |onaco...|........|
|00000f20| 00 16 00 00 00 46 00 03 | b4 60 02 94 00 00 00 1c |.....F..|.`......|
|00000f30| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000f40| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 03 a7 82 |........|........|
|00000f50| 03 eb ff ff 00 00 00 08 | 00 03 a7 f6 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+